%.o: ../%.cpp
	g++ -c $(CPPFLAGS) -o $@ $<
OBJECTS=$(patsubst ../%.cpp, %.o, $(SOURCES))
ifdef DBG
CPPFLAGS=-Wall -g
else
CPPFLAGS=-Wall -O2
endif
../$(TARGET): $(OBJECTS)
	echo $(OBJECTS)
	g++ *.o -o ../$(TARGET) -lpulse-simple -lboost_thread-mt
